package com.cn.wanxi.thread;

public class MyRunnableMain {
    public static void main(String[] args) {
        MyRunnable myRunnable=new MyRunnable();
//        线程的优先级,大概率先执行
        Thread thread1=new Thread(myRunnable);
        thread1.setName("线程1");
        thread1.setPriority(9);
        thread1.start();
        Thread thread2=new Thread(myRunnable);
        thread2.setName("线程2");
        thread2.start();
        Thread thread3=new Thread(myRunnable);
        thread3.setName("线程3");
        thread3.setPriority(10);
        thread3.start();
    }
}
